<template>
  <div>
    <div class="item" v-for="(item, index) of list" :key="index">
      <div class="item-title">
        <span class="iconfont">&#xe62d;</span>{{ item.title }}
      </div>
      <div v-if="item.children" class="item-childen">
        <detail-list :list="item.children"></detail-list>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'DetailList',
  props: {
    list: Array
  }
}
</script>
<style lang="stylus" scoped>
  .item-title
    line-height: .8 rem
    font-size: .32 rem
    text-align: left
    padding-left: .2 rem
    .iconfont
      padding-right: .2 rem
  .item-childen
    padding: 0 .2rem
</style>
